package zoo.product.validator;

import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;

import zoo.product.domain.HitCommand;

public class ProductValidator implements Validator {

	
	public boolean supports(Class<?> clazz) {
		
		return HitCommand.class.isAssignableFrom(clazz); 
	}
	
	public void validate(Object target, Errors errors) {
		HitCommand command = (HitCommand) target;
		System.out.println(command);
	
		
	}
}
